﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace AssData
{
    public class EventModel
    {
        public int ID { get; set; }
        public string EventTitle { get; set; }
        public string EventMark { get; set; }
        public string EventRelate { get; set; }
        public string EventLocation { get; set; }
        public DateTime Startime { get; set; }
        public DateTime Endtime { get; set; }
        public DateTime Addtime { get; set; }
        public string State { get; set; }
        public int AheadMin { get; set; }
        public string Duplicate { get; set; }
        public bool AllDayEvent { get; set; }
        /// <summary>
        /// 唯一事件标识
        /// </summary>
        public string UniqueSN {
            get
            {
                return new DataSelect().GetUniqueSN(EventTitle, Startime, Endtime, EventLocation);
            } 
        }
    }
}
